Skip to content

Improve offline usage#56

Draft
ASDFGamer wants to merge 18 commits intomasterfrom
offline_improvements
Draft

Improve offline usage#56
ASDFGamer wants to merge 18 commits intomasterfrom
offline_improvements

Conversation

@ASDFGamer
Copy link
Copy Markdown
Member

This PR improves the usage of the app when the app cant reach the endpoint.
It shows the cached Lights in the light List and sets the "isReachable" State of the Lights to false.

@ASDFGamer ASDFGamer requested a review from ku-we March 3, 2023 20:53
@ASDFGamer ASDFGamer self-assigned this Mar 3, 2023
This is needed because for example livedata can contain null
This works, but it is not perfect, that the reachable state is
calculated in the LightDetailViewModel. This means that other ViewModels
and other places would need to implement the same thing
# Conflicts:
#	app/src/main/java/org/d3kad3nt/sunriseClock/ui/light/LightsFragment.java
#	app/src/main/java/org/d3kad3nt/sunriseClock/ui/light/lightDetail/LightDetailViewModel.java
This was done because it had no additional info
@ASDFGamer ASDFGamer marked this pull request as draft February 26, 2025 21:48
@ku-we ku-we removed their request for review October 30, 2025 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant